package com.gibs.peixunapi.service;

import com.gibs.peixunapi.model.ExamInfo;
import com.gibs.peixunapi.model.TestPaper;
import com.gibs.peixunapi.result.Result;

import javax.validation.Valid;

public interface ExamInfoService {

    Result create(@Valid ExamInfo object);

    Result save(@Valid ExamInfo object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);


	/**
	 * 在创建完成考试后,根据本厂考试考试信息获取试卷实体类
	 * @param examInfoId 考试信息Id
	 * @return
	 */
	TestPaper getTestPaper(Integer examInfoId);

    /**
     * 更新考试信息中的试卷信息
     * @param testPaper 试卷实体类
     * @return
     */
    Result updateTestPaper(TestPaper testPaper);
}

